package com.jprocms.module.cms.controller.portal.vo;

import com.mzt.logapi.starter.annotation.DiffLogField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 留言板 Base VO
 */
@Data
public class GuestbookPortalBaseVO {

    @Schema(description = "站点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29114")
    private Long siteId;

    @Schema(description = "类型(数据字典cms_guestbook_type值)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型(数据字典cms_guestbook_type值)不能为空")
    @DiffLogField(name = "类型")
    private Integer guestbookType;

    @Schema(description = "留言标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "留言标题不能为空")
    @DiffLogField(name = "留言标题")
    private String title;

    @Schema(description = "留言内容")
    @DiffLogField(name = "留言内容")
    private String msgText;

    @Schema(description = "回复内容")
    @DiffLogField(name = "回复内容")
    private String replyText;

    @Schema(description = "回复日期")
    @DiffLogField(name = "回复日期")
    private Date replyDate;

    @Schema(description = "是否公开")
    @DiffLogField(name = "是否公开")
    private Integer isOpen;

    @Schema(description = "是否回复")
    @DiffLogField(name = "是否回复")
    private Integer isReplied;

    @Schema(description = "是否推荐")
    @DiffLogField(name = "是否推荐")
    private Integer recommended;

    @Schema(description = "状态(0:已审核,1:未审核,2:已屏蔽)用户传递无效，后台写死", example = "1")
    @DiffLogField(name = "状态")
    private Integer status;

}
